var t = function(t) {
    return (t = t.toString())[1] ? t : "0" + t;
};

module.exports = {
    formatTime: function(e) {
        var r = e.getFullYear(), n = e.getMonth() + 1, u = e.getDate(), g = e.getHours(), a = e.getMinutes(), o = e.getSeconds();
        return [ r, n, u ].map(t).join("/") + " " + [ g, a, o ].map(t).join(":");
    },
    currentPagePath: function() {
        var t = getCurrentPages();
        return t.length >= 1 ? t[t.length - 1].route : "";
    },
    previousPageClass: function() {
        var t = getCurrentPages();
        return t.length >= 2 ? t[t.length - 2] : "";
    }
};